.uploader {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    &.wpt {
        .wpt();
    }
}

.mediaItem {
    margin-right: .16rem;
    margin-bottom: .18rem;
    height: 1.6rem;
    width: 1.6rem;
}

.coverImage {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100%;
}

.image {
    .coverImage();
    .mediaItem();
    position: relative;

    .removeIcon {
        position: absolute;
        top: 0;
        left: 0;
        transform: translate(-45%, -45%) rotate(45deg);
        color: rgba(51, 51, 51, 0.7);
    }
}
.wptIosTip{
    position: absolute;
    padding: 0 0.4rem 0 0.2rem;
    color: rgba(243, 99, 4, 0.9);
    bottom: 0px;
    border-radius: 5px;
}
.uploadButton {
    .mediaItem();
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #888;
    background: #eee;
    border-radius: 2px;

    &.disabled {
        background: #eeeeee;
    }

    .icon {
        color: #888;
        font-size: .76rem;
        &.scale {
            transform: scale(0.73);
        }
    }
}

.videoPlayer {
    .mediaItem();

    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    .playIcon {
        width: .52rem;
        height: .52rem;
        position: absolute;
        bottom: .08rem;
        right: .08rem;
        background-color: #000;
        border-radius: 100%;
        border: 2px solid #ffffff;
        box-sizing: border-box;
        opacity: .8;

        &:before {
            position: absolute;
            content: "";
            top: 50%;
            left: 50%;
            transform: translate(-35%, -50%);
            border-left: .16rem solid #ffffff;
            border-top: .12rem solid transparent;
            border-bottom: .12rem solid transparent;
        }
    }

    .removeIcon {
        position: absolute;
        top: 0;
        left: 0;
        transform: translate(-35%, -45%) rotate(45deg);
        color: rgba(51, 51, 51, 0.7);
    }
}


.wpt {
    .image {
        border-radius: 0.08rem;
        width: 1.56rem;
        height: 1.56rem;
        margin-right: .22rem;
        margin-bottom: .32rem;
        .coverImage {
            border-radius: 0.08rem;
            .removeIcon {
                width: .36rem;
                height: .36rem;
                left: auto;
                right: 0;
                transform: translate(45%, -45%) rotate(0deg);
                background-image: url(https://cdn.weipaitang.com/static/20190221c9c42d4c-59d7-49b3-a963-ddca3c23d002-W36H36);
                background-repeat: no-repeat;
                background-size: cover;
                background-position: center;
                >i {
                    display: none;
                }
            }
        }
    }
    .uploadButton {
        background-image: url(https://cdn.weipaitang.com/static/2019022133da8014-00f6-4abe-935c-a7cf0169b41d-W48H48);
        background-repeat: no-repeat;
        background-size: .48rem .48rem;
        background-position: center .32rem;
        background-color: #f2f2f2;
        box-sizing: border-box;
        padding-top: .72rem;
        text-align: center;
        margin-right: .22rem;
        margin-bottom: .32rem;
        >i {
            display: none;
        }
        >div {
            font-size: .24rem;
            color: #999;
        }
    }

    >div:nth-child(4n + 4) {
        margin-right: 0;
    }

    .subTitle {
        line-height: 1.2;
        font-size: .2rem;
    }
}